package com.foreveross.taskservice.application.task.statsdetail.vo;

import java.util.Date;

import com.foreveross.taskservice.common.model.AbstractTaskModel;

/**
 * 基础的任务vo
 * 
 * @author Administrator
 * 
 */
public class BaseTaskVO extends BaseVO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7970087924120728624L;

	private Long channelId;// 渠道ID
	private String channelName;
	private String channelCode;
	private String taskId;
	private Integer taskPriority;
	private Integer taskStatus;// 任务状态
	private Integer cacheDataSpaceType;// 数据空间类型
	private Date cacheDataSpaceDate;// 数据空间日期
	private String grabDateStr;//数据抓取日期
	

	/**
	 * 包装的任务模型
	 */
	private AbstractTaskModel taskModel;
	public BaseTaskVO() {
		super();
	}
	public BaseTaskVO(AbstractTaskModel model){

		super();
		this.taskModel=model;
		this.channelId=model.getChannel().getId();
		this.channelName=model.getChannel().getName();
		this.channelCode=model.getChannel().getHbaseKey();
		this.taskId=model.getId();
		this.taskPriority=model.getPriority();
		this.cacheDataSpaceType=model.getTaskType();
	}
	
	
	
	
	public Long getChannelId() {
		return channelId;
	}

	

	public String getGrabDateStr() {
		return grabDateStr;
	}
	public void setGrabDateStr(String grabDateStr) {
		this.grabDateStr = grabDateStr;
	}
	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public Integer getTaskPriority() {
		return taskPriority;
	}

	public void setTaskPriority(Integer taskPriority) {
		this.taskPriority = taskPriority;
	}

	public Integer getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(Integer taskStatus) {
		this.taskStatus = taskStatus;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Integer getCacheDataSpaceType() {
		return cacheDataSpaceType;
	}

	public void setCacheDataSpaceType(Integer cacheDataSpaceType) {
		this.cacheDataSpaceType = cacheDataSpaceType;
	}

	public Date getCacheDataSpaceDate() {
		return cacheDataSpaceDate;
	}

	public void setCacheDataSpaceDate(Date cacheDataSpaceDate) {
		this.cacheDataSpaceDate = cacheDataSpaceDate;
	}

	public AbstractTaskModel getTaskModel() {
		return taskModel;
	}

	public void setTaskModel(AbstractTaskModel taskModel) {
		this.taskModel = taskModel;
	}
	public String getChannelCode() {
		return channelCode;
	}
	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}

	

	
}
